package com.ptszyxx.popose.module.main.dynamic.vm;

import android.app.Application;

import androidx.annotation.NonNull;

import com.ptszyxx.popose.common.enums.ActionEnum;
import com.ptszyxx.popose.common.utils.YActionEventUtil;
import com.ptszyxx.popose.common.utils.YActivityUtil;
import com.ysg.base.BaseViewModel;
import com.ysg.binding.command.BindingCommand;
import com.ysg.bus.event.SingleLiveEvent;
import com.ysg.http.data.CommonRepository;

public class DynamicVM extends BaseViewModel<CommonRepository> {

    public DynamicVM(@NonNull Application application, CommonRepository model) {
        super(application, model);
    }

    @Override
    public void requestUploadAction() {
        YActionEventUtil.getInstance().upload(this, model, ActionEnum.dynamic);
    }

    public UIChangeObservable uc = new UIChangeObservable();
    public class UIChangeObservable {
        public SingleLiveEvent onHeartEvent = new SingleLiveEvent<>();
    }

    public BindingCommand onReleaseCommand = new BindingCommand(() -> YActivityUtil.getInstance().jumpDynamicRelease(DynamicVM.this));

    //=========================================接口：start===========================================
    //=========================================接口：end=============================================




}
